<extend name="./Application/Common/View/block/base.php" />
<block name="header">
    <include file="./Application/Admin/View/block/easyui_header.php" />
    <link href="/extend/umeditor/themes/default/css/umeditor.min.css" type="text/css" rel="stylesheet">
    <link href="__PUBLIC__/css/Content/show.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=FGxlOGqzEZu5SDriE0hMYqFx"></script>>
</block>
<block name="bdoy">
    <body>
        <form action="" method="post" onsubmit="return $(this).form('validate');">
            <table cellspacing="0" width="100%" class="">

                <tr>
                    <td class="label"><strong>{:LANG('gate_name')}: </strong></td>
                    <td class="form-line">
                        <input class="easyui-textbox easyui-validatebox input-text" name="gate_name" id="gate_name" size="20" style="height: 24px;line-height: 24px;"
                               data-options="prompt:'{:LANG('pls_input')}{:LANG('gate_name')}',required:true,validType:'length[1,50]'">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('gate_number')}: </strong></td>
                    <td class="form-line">
                        <input class="easyui-textbox easyui-validatebox input-text" name="gate_number" id="gate_number" size="20" style="height: 24px;line-height: 24px;"
                               data-options="prompt:'{:LANG('pls_input')}{:LANG('gate_number')}',required:true,validType:'length[1,50]'">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('status')}: </strong></td>
                    <td class="form-line radio-line">
                        <label>{:LANG('pass')}</label><input class="radio" type="radio" name="status" value="1" checked="checked">
                        <label>{:LANG('no_pass')}</label><input class="radio" type="radio" name="status" value="0">
                    </td>
                </tr>

                <tr>
                    <td class="label"><strong>{:LANG('opr')}: </strong></td>
                    <td class="form-line">
                       <textarea id="opr" style="width: 300px;height: 100px;" readonly="true" onclick="open_dialog('/Manage/AdminMobileAdmin//show_mobile_admin')"></textarea>
                        <input type="hidden" id="opr_ids" name="gate_opr">
                    </td>
                </tr>

                <tr>
                    <td class="label"></td>
                    <td class="form-line">
                        <input type="submit" class="submit-button bule-button" value="{:LANG('save')}">
                        <input type="button" onclick="close_dialog()" class="submit-button" value="{:LANG('cancel')}">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('gps_point')}: </strong></td>
                    <td class="form-line">
                        <input class="" name="gate_point" id="point" size="20" style="height: 24px;line-height: 24px;"
                               data-options="prompt:'{:LANG('pls_input')}{:LANG('gps_point')},格式为：102.712943,25.05061'">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('gps_point')}: </strong></td>
                    <td class="form-line">
                        <div id="allmap" style="width: 700px;height: 500px;"></div>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</block>
<block name="footExtendJs">
    <script type="text/javascript">
        // 百度地图API功能
        var map = new BMap.Map("allmap");
        map.centerAndZoom(new BMap.Point(102.710212,25.0548), 12);
        map.enableScrollWheelZoom();
        function showInfo(e){
            $('#point').val(e.point.lng + ", " + e.point.lat);
        }
        map.addEventListener("click", showInfo);
    </script>


</block>
